﻿using Basic.HrRemoteModel;
using Basic.HrRemoteModel.Msg.Model;
using SqlSugar;

namespace Basic.HrModel.DB
{
    [SugarTable("EmpMsgList")]
    public class DBEmpMsgList
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }

        public long AppId { get; set; }
        public string MsgClassify { get; set; }


        public long EmpId { get; set; }

        public HrMsgType MsgType { get; set; }

        public long? FormEmpId { get; set; }

        public string MsgTitle { get; set; }

        [SugarColumn(IsJson = true)]
        public Dictionary<string, object> Attrs { get; set; }

        [SugarColumn(IsJson = true)]
        public MsgBody[] Body { get; set; }

        public DateTime? TimeOut { get; set; }

        /// <summary>
        /// 优先级
        /// </summary>
        public HrMsgPriority Priority { get; set; }

        public string Tag { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public short Sort { get; set; }

        public HrMsgStatus MsgStatus { get; set; }

        public bool IsRead { get; set; }

        public DateTime? ReadTime { get; set; }

        public DateTime? DoneTime { get; set; }

        public string LinkType { get; set; }

        public long LinkPk { get; set; }
        /// <summary>
        /// 作废
        /// </summary>
        public bool ToVoid { get; set; }

        public DateTime AddTime { get; set; }
    }
}
